#ifndef _BIT_MASK_H_
#define _BIT_MASK_H_

#include <bitset>
#include <cstdio>
#include <iostream>

class BitMask {
  public:
    BitMask();
    ~BitMask();

    BitMask(unsigned int m);

    //enable
    bool moduleEnable(int index);

    //disable
    bool moduleDisable(int index);

    void printModuleSwitchInfo();

    //检查对应位置是否开启
    bool checkSwitchStatus(int index);

  private:
    unsigned int mask;
};

#endif